import { RouteRecordRaw } from 'vue-router';

const router: RouteRecordRaw[] = [
  {
    path: '/hospital',
    name: 'hospital',
    redirect: { name: 'hospitalLayout' },
    component: () => import('@/layouts/LayoutFirst.vue'),
    children: [
      {
        path: '/hospital/',
        name: 'hospitalLayout',
        redirect: { name: 'hospitalOrder' },
        component: () => import('@/layouts/LayoutSecond.vue'),
        children: [
          { path: '/hospital/order', name: 'hospitalOrder', component: () => import('@/pages/hospital/views/order.vue') },
          { path: '/hospital/inquiry', name: 'hospitalInquiry', component: () => import('@/pages/hospital/views/inquiry.vue') },
        ],
      },
    ],
  },
];

export default router;
